package for_test;

import org.junit.Assert;
import org.junit.Test;

public class SortMethodBubbleTest {
	@Test
	public void test_BubbleSort() {
		int[] array = {4, 6, 7, 1, 9, 2, 5, 3, 8};
		SortMethod matrix = new SortMethodBubble();
		matrix.sortArray(array, new NaturalOrderComparator());
		Assert.assertArrayEquals(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9}, array);
	}	

}
